package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.CTruckCert;
import cn.huiyunche.base.service.vo.TruckAnnexVo;
import cn.huiyunche.tools.basic.exceptions.BusinessException;

import java.util.List;

public interface TruckAnnexService {

    /**
     * 查询车辆附件
     *
     * @param truckId 车辆ID
     * @return
     * @throws BusinessException
     */
    List<TruckAnnexVo> queryTruckAnnexList(long truckId) throws Exception;

    /**
     * 新增车辆附件信息
     *
     * @param truckAnnex 车辆信息附件对象
     * @return
     * @throws BusinessException
     */
    int add(CTruckCert truckAnnex) throws Exception;

    /**
     * 修改车辆信息附件
     *
     * @param truckAnnex 车辆信息附件对象
     * @return
     * @throws BusinessException
     */
    int update(CTruckCert truckAnnex) throws Exception;

    /**
     * 根据车辆ID删除车辆附件
     *
     * @param truckId
     * @return
     * @throws BusinessException
     */
    int del(Long truckId) throws Exception;

    /**
     * 加载图片信息
     *
     * @param truckId
     * @return
     * @throws BusinessException
     */
    List<CTruckCert> loadPic(String truckId) throws Exception;
}
